package ru.matveenko.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.Timer;
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.VerticalPanel;

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class cmdLine implements EntryPoint {

	/**
	 * This is the entry point method.
	 */
	public void onModuleLoad() {

		final RootPanel body = RootPanel.get();
		final FlowPanel viewPort = new FlowPanel();
		final Shell shell = new Shell();
		final HorizontalPanel linePanel = new HorizontalPanel();
		final TextBox inputBox = new TextBox();
		
		body.add(viewPort);
		viewPort.addStyleName("viewPort");
		
		/*
		viewPort.add(shellPanel);
		
		shellPanel.add(linePanel);
		
		linePanel.add(new Label("C:\\>"));
		
		linePanel.add(new TextBox());
		inputBox.addStyleName("");
		
		Timer curBlinking = new Timer() {
			public void run() {
				if ( inputBox. ) {
					inputBox.setText(inputBox.getText().replaceFirst("_$", ""));
				} else {
					inputBox.setText(inputBox.getText() + "_");
				}
			}
		};
		curBlinking.scheduleRepeating(500);
		*/
		
		
		
	}
}
